<template>
	<i
		:class="`pf-Icon ${name}`"
		:style="{
			fontSize:toCssLength(size),
			color,
		}"
	/>
</template>

<script setup lang="ts">
import {toCssLength} from '../../../util';
/**
 * 图标组件
 * @author 唐国雄
 * @date 2022/8/25
 * 属性----------------------
 * :name	图标名, string
 * :color	颜色, string
 * :size	大小, string | number
 */
defineProps<{
	name:string;
	color?:string;
	size?:string|number;
}>();
</script>

<script lang="ts">
export default {};
</script>